﻿using System;
using System.Windows.Forms;
using PersonalAccoutingProgram.View;

public partial class MainMenu : Form
{
    private string userName;

    public MainMenu(string currentUserName)
    {
        InitializeComponent();
        this.userName = currentUserName;
    }

    private void btnEnterExpenses_Click(object sender, EventArgs e)
    {
        EnterExpenses expenses = new EnterExpenses(userName);
        expenses.ShowDialog();
    }

    private void MainMenu_Load(object sender, EventArgs e)
    {
    }

    private void btnEnterIncomes_Click(object sender, EventArgs e)
    {
        EnterIncomes enterIncomes = new EnterIncomes(userName);
        enterIncomes.ShowDialog();
    }

    private void btnDeleteExpenses_Click(object sender, EventArgs e)
    {
        EditExpenses expensesEditor = new EditExpenses(userName);
     
        expensesEditor.ShowDialog();
    }

    private void btnDeleteIncomes_Click(object sender, EventArgs e)
    {
        EditIncomes expensesEditor = new EditIncomes(userName);
        expensesEditor.ShowDialog();
    }

    private void btnAbout_Click(object sender, EventArgs e)
    {
        AboutBox about = new AboutBox();
        about.ShowDialog();
    }

    private void btnReference_Click(object sender, EventArgs e)
    {
        References references = new References(userName);
        references.ShowDialog();
    }
}